package com.chenzhou.product_sys.service;

import com.chenzhou.product_sys.dao.impl.ImagesDAOImpl;
import com.chenzhou.product_sys.entity.ImagesEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImagesService {

    @Autowired
    private ImagesDAOImpl dao;

    public List<ImagesEntity> queryImagesByGoodsID(Integer id){
        return dao.queryImagesByGoodsID(id);
    }

    public int add_Goods(ImagesEntity imagesEntity){
        return dao.add_goodsImage(imagesEntity);
    }

    public int delete_goodsImage(Integer id){
        return dao.delete_goodsImage(id);
    }

}
